<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧配镜一体机 - 打印凭证</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .mockup {
            border: 2px solid #e5e7eb;
            border-radius: 1rem;
            overflow: hidden;
        }
        @media print {
            body {
                background: white;
            }
            .no-print {
                display: none;
            }
            .print-only {
                display: block;
            }
        }
        .product-image {
            background-color: #f3f4f6;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>');
            background-repeat: no-repeat;
            background-position: center;
            background-size: 24px;
        }
    </style>
</head>
<body class="bg-gradient-to-br from-blue-50 to-blue-100 min-h-screen p-8">
    <div class="mockup w-[800px] h-[600px]">
        <div class="h-full flex flex-col glass-effect">
            <!-- 顶部导航 -->
            <div class="p-4 border-b border-gray-200 no-print">
                <div class="flex items-center justify-between">
                    <div class="flex items-center">
                        <button class="mr-4 p-2 rounded-full hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/arrow-left.svg" class="w-6 h-6" alt="返回">
                        </button>
                        <h1 class="text-2xl font-bold text-blue-800">打印凭证</h1>
                    </div>
                    <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700">
                        打印
                    </button>
                </div>
            </div>

            <!-- 打印内容 -->
            <div class="flex-1 overflow-y-auto p-8">
                <div class="bg-white rounded-lg p-8 shadow-sm">
                    <!-- 头部 -->
                    <div class="text-center mb-8">
                        <h1 class="text-2xl font-bold text-gray-900">智慧配镜凭证</h1>
                        <p class="text-gray-500 mt-2">请妥善保管此凭证，取镜时出示</p>
                    </div>

                    <!-- 订单信息 -->
                    <div class="mb-8">
                        <h2 class="text-lg font-medium text-gray-900 mb-4">订单信息</h2>
                        <div class="grid grid-cols-2 gap-4">
                            <div>
                                <p class="text-sm text-gray-500">订单编号</p>
                                <p class="text-gray-900">202403150001</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">下单时间</p>
                                <p class="text-gray-900">2024-03-15 14:30</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">客户姓名</p>
                                <p class="text-gray-900">张三</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">联系电话</p>
                                <p class="text-gray-900">138****8888</p>
                            </div>
                        </div>
                    </div>

                    <!-- 配镜信息 -->
                    <div class="mb-8">
                        <h2 class="text-lg font-medium text-gray-900 mb-4">配镜信息</h2>
                        <div class="space-y-4">
                            <div class="border-b border-gray-200 pb-4">
                                <h3 class="font-medium text-gray-900">右眼</h3>
                                <div class="grid grid-cols-3 gap-4 mt-2">
                                    <div>
                                        <p class="text-sm text-gray-500">球镜</p>
                                        <p class="text-gray-900">-3.50</p>
                                    </div>
                                    <div>
                                        <p class="text-sm text-gray-500">柱镜</p>
                                        <p class="text-gray-900">-0.75</p>
                                    </div>
                                    <div>
                                        <p class="text-sm text-gray-500">轴位</p>
                                        <p class="text-gray-900">180°</p>
                                    </div>
                                </div>
                            </div>
                            <div class="border-b border-gray-200 pb-4">
                                <h3 class="font-medium text-gray-900">左眼</h3>
                                <div class="grid grid-cols-3 gap-4 mt-2">
                                    <div>
                                        <p class="text-sm text-gray-500">球镜</p>
                                        <p class="text-gray-900">-3.25</p>
                                    </div>
                                    <div>
                                        <p class="text-sm text-gray-500">柱镜</p>
                                        <p class="text-gray-900">-0.50</p>
                                    </div>
                                    <div>
                                        <p class="text-sm text-gray-500">轴位</p>
                                        <p class="text-gray-900">175°</p>
                                    </div>
                                </div>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">瞳距</p>
                                <p class="text-gray-900">64mm</p>
                            </div>
                        </div>
                    </div>

                    <!-- 商品信息 -->
                    <div class="mb-8">
                        <h2 class="text-lg font-medium text-gray-900 mb-4">商品信息</h2>
                        <div class="space-y-4">
                            <div class="flex items-center">
                                <div class="w-16 h-16 product-image rounded-lg overflow-hidden mr-4">
                                </div>
                                <div class="flex-1">
                                    <h3 class="font-medium text-gray-900">时尚金属镜架</h3>
                                    <p class="text-sm text-gray-500">钛合金材质</p>
                                    <p class="text-blue-600 font-medium">¥599</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <div class="w-16 h-16 product-image rounded-lg overflow-hidden mr-4">
                                </div>
                                <div class="flex-1">
                                    <h3 class="font-medium text-gray-900">防蓝光镜片</h3>
                                    <p class="text-sm text-gray-500">1.67折射率</p>
                                    <p class="text-blue-600 font-medium">¥399</p>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 取件信息 -->
                    <div class="mb-8">
                        <h2 class="text-lg font-medium text-gray-900 mb-4">取件信息</h2>
                        <div class="grid grid-cols-2 gap-4">
                            <div>
                                <p class="text-sm text-gray-500">取件方式</p>
                                <p class="text-gray-900">到店自取</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">预计取件时间</p>
                                <p class="text-gray-900">2024-03-18 14:30</p>
                            </div>
                        </div>
                    </div>

                    <!-- 底部信息 -->
                    <div class="border-t border-gray-200 pt-8">
                        <div class="flex justify-between items-center">
                            <div>
                                <p class="text-sm text-gray-500">订单总价</p>
                                <p class="text-xl font-bold text-blue-600">¥998</p>
                            </div>
                            <div class="text-right">
                                <p class="text-sm text-gray-500">门店地址</p>
                                <p class="text-gray-900">北京市朝阳区XX路XX号</p>
                                <p class="text-gray-900">联系电话：010-88888888</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 底部导航 -->
            <div class="p-4 border-t border-gray-200 no-print">
                <div class="flex justify-between items-center">
                    <button class="px-4 py-2 text-gray-600 hover:text-blue-600">
                        <img src="https://unpkg.com/lucide-static@latest/icons/align-center.svg" class="w-6 h-6 mx-auto" alt="首页">
                        <span class="text-xs mt-1">首页</span>
                    </button>
                    <button class="px-4 py-2 text-gray-600 hover:text-blue-600">
                        <img src="https://unpkg.com/lucide-static@latest/icons/shopping-bag.svg" class="w-6 h-6 mx-auto" alt="商品">
                        <span class="text-xs mt-1">商品</span>
                    </button>
                    <button class="px-4 py-2 text-blue-600">
                        <img src="https://unpkg.com/lucide-static@latest/icons/clipboard-list.svg" class="w-6 h-6 mx-auto" alt="订单">
                        <span class="text-xs mt-1">订单</span>
                    </button>
                    <button class="px-4 py-2 text-gray-600 hover:text-blue-600">
                        <img src="https://unpkg.com/lucide-static@latest/icons/user.svg" class="w-6 h-6 mx-auto" alt="我的">
                        <span class="text-xs mt-1">我的</span>
                    </button>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 